<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/3/10
  Time: 22:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>更新</title>
</head>
<body>
    <form action="/user/update" method="post">
        <input type="hidden" name="uId" value="${user.UId}"/>
        用户名：<input type="text" name="username" value="${user.username}"><br><br>
        生日:<input type="text" name="birthday" value="<fmt:formatDate pattern='yyyy-MM-dd HH:mm:ss' value='${user.birthday}'/>"/><br><br>
        性别：<input type="text" name="sex" value="${user.sex}"><br><br>
        地址：<input type="text" name="address" value="${user.address}"><br/><br>
        部门：
        <select name="department" >
            <option <c:if test="${user.department == '1'}">selected</c:if>>1</option>
            <option <c:if test="${user.department == '2'}">selected</c:if>>2</option>
            <option <c:if test="${user.department == '3'}">selected</c:if> >3</option>
        </select>
        <br/><br>
        <input type="submit" value="更新">
    </form>
</body>
</html>
